package com.oceansoft.mobile.econsole.modules.complaint.persistence;

import com.oceansoft.mobile.econsole.modules.api.entity.DealDept;
import com.oceansoft.mobile.econsole.modules.base.entity.Query;
import com.oceansoft.mobile.econsole.modules.complaint.entity.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2016/2/23.
 */
@Repository
public interface IComplaintMapper {

    int saveComplaintInfo(ComplaintReport complaintReport);

    int saveComplaintAttach(ComplaintAttach complaintAttach);

    int updateComplaintInfo(ComplaintReport complaintReport);

    String createProjectBillId();

    String getProjectBillLsh();

    String getLsh();

    int saveCompltProInfo(CompltProInfo compltProInfo);

    int saveCompltCenter(CompltCenter compltCenter);

    List<CompltCenter> loadComplaintByCondition(Query query);

    CompltCenterReply loadComplaintReplyByCGuid(@Param("cGuid")String cGuid);

    CompltProInfo loadCompltProInfoByGuid(@Param("guid")String cGuid);

    CompltCenter loadCompltCenterByProjectGuid(@Param("projectGuid")String cGuid);

    int updateComplaintComment(@Param("prjGuid")String prjGuid);

    List<DealDept> loadDealFirstDeptList();

    List<DealDept> loadDealSecDeptList(@Param("deptId") String deptId);
}
